﻿using System;

namespace AiFrame.InterfaceLib.Data
{ 
    /// <summary>
    /// Contains financial constants or useful functions.
    /// </summary>
    public class Finances
    {
        /// <summary>
        /// Returns the current tax value.
        /// </summary>
        public static int TAX
        {
            get
            {
                return 19;
            }
        }

        /// <summary>
        /// Rounds a numeruc value with a specific
        /// number of digits.
        /// </summary>
        /// <param name="value">The value to round.</param>
        /// <param name="digits">The digits after the commata.</param>
        /// <returns>The rounded value.</returns>
        public static double Round(double value, int digits)
        {
            return Math.Round(value, digits, MidpointRounding.AwayFromZero);
        }
    }
}
